#!/bin/bash
if [  x$1 == x ];then
    echo "please specify img file"
    exit
fi
echo "img file is $1"
cp $1 .img_tmp
iverilog -o char_wave tb.v
vvp -n char_wave -lxt2
rm .img_tmp
#gtkwave wave.vcd
